from rest_framework import serializers
from .models import MqttServer


class MqttServerSenserSerializer(serializers.ModelSerializer):

    class Meta:
        model = MqttServer
        fields = ('id',
                  'name',
                  'ip_address',
                  'port',
                  'user_names',
                  'password',
                  )